package com.yyt.send.util;

import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component;
import org.springframework.web.client.RestTemplate;

import java.util.HashMap;
import java.util.Map;

/**
 * @author yeyangtao created at 15:36 2020/9/14
 */
public class RestTemplateUtil {
    public static void main(String[] args) {
        RestTemplate restTemplate = new RestTemplate();
        Map<String,String> params = new HashMap<>();
        params.put("key","value");
        ResponseEntity<String> responseEntity = restTemplate.getForEntity("www",String.class,params);
    }
}
